package com.zerosoft.shuguang.service;

import com.zerosoft.shuguang.entities.FireAlarm;
import com.zerosoft.shuguang.repository.FireAlarmRepository;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class FireAlarmService {
    @Resource
    private FireAlarmRepository fireAlarmRepository;

    public FireAlarm addFireAlarm(FireAlarm fireAlarm) {
        return fireAlarmRepository.save(fireAlarm);
    }
}
